<?php
/**
 * 
 */
defined ( '_FW_EXEC' ) or die ( 'Restricted access' );
RCoreImporter::cls('html.fieldInfo.BasicHtmlFieldInfo');

class EmailHtmlFieldInfo extends BasicHtmlFieldInfo {
	/**
	 * Override the parent function.
	 * @see core/html/fieldInfo/AbstractHtmlFieldInfo::buildHtmlPreviewData()
	 */
	function buildHtmlPreviewData($extAttributes = '', $key = null, $dataType = 'S') {
		$htmlData = "<a href='mailto:{$this->_value}'>".$this->_value."</a>";
		return $htmlData;
	}
	
}
?>